failure 0x8000ffff
E_notimpl is not 0x80004001
E_outofmemory failed to allocate the required memory 0x8007000e
One or more e_invalidarg parameters are invalid: 0x80070057
E_nointerface does not support the interface 0x80004002
Invalid e_pointer pointer 0x80004003
Invalid e_handle handle 0x80070006
E_abort operation suspended 0x80004004
Failure 0x80004005 not specified by e_fail
E_accessdenied error 0x80070005
The returned values cannot be compared wi
format (cf_bitmap) (tymed_gdi) public class Mydataobject:i Dataobject's. {private bitmap mbitmap; formatetc mpformatetc of the public; # IDataObject Congressman of the region private constant UINT = 0; Private constant UINT e_pointer = 0x80004003; Private constant UINT E_ Notimpl = 0x80004001; E_fail of private constant UINT = 0x80004005;; GetData of public uint (formatetc pformatetc of the literature 160; Document Stgmedium pmedium) {intptr hdst = m
Lresult: Return Value of Windows process or callback function in Win32 environment hresult: Return Value of COM function and method
Hresult is a simple data type, which is usually used as the return value by attributes and ATL. The following table describes different values. The header file winerror. h contains more values.
Description
S_ OK operation successful 0x00000000
E_unexpected: unexpected failure 0x8000ffff
E_notimpl is not 0x80004001
E
exceptionE_NOTIMPL 0x80004001 features not implementedE_fail 0x80004005 no detailed error. General need to get Rich error error message (Note 1)E_pointer 0x80004003 Invalid pointerE_handle 0x80070006 Invalid HandleE_abort 0x80004004 Terminate operationE_accessdenied 0x80070005 Access DeniedE_nointerface 0x80004002 does not support interfaces HRESULT is actually a double-byte value whose highest bit (bit) if 0 indicates success and 1 indicates an erro
-2147483640 unspecified error0x80000009-2147483639 general access denied Error0x8000000a-2147483638 the data necessary to complete this operationIs not yet available.0x80004001-2147467263 not implemented0x80004002-2147467262 no such interface supported0x80004003-2147467261 Invalid Pointer0x80004004-2147467260 operation aborted0x80004005-2147467259 unspecified error0x80004006-2147467258 Thread Local STORAGE FAILURE0x80004007-2147467257 get Shared Memor
///
E_notiml = 0x80004001,
///
/// Unknown error
///
E_FAIL = 0x80000008,
///
/// File not filtered due to password protection
///
FILTER_E_PASSWORD = 0x8000000b,
///
/// The document format is not recognized by the filter
///
FILTER_E_UNKNOWNFORMAT = 0x8001_c,
///
/// No text in current chunk
///
FILTER_E_NO_TEXT = 0x80041705,
///
/// No more chunks of text available in object
///
FILTER_E_END_OF_CHUNKS = 0x80041700,
///
/// No more text available i
This article supporting source code
First, the preface
In programming, error handling is essential and usually takes up a lot of space. This read the method of handling errors (exceptions) that are landed in COM.
In a component program, if you encounter an error, there are generally two ways to handle it.
Second, simple return
For simpler errors, return directly to the HRESULT that represents the cause of the error. For example, here are some common error values:
E_invalidarg
Unknown exception
E_NotImpl
0x80004001
Features not implemented
E_fail
0x80004005
Error not described in detail. General need to obtain Rich error error message (Note 1)
E_pointer
0x80004003
Invalid pointer
E_handle
0x80070006
Invalid handle
E_abort
0x80004004
Terminate operation
E_accessdenied
0x80070005
Access Denied
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.